﻿<phone:PhoneApplicationPage 
    x:Class="myChannel9.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:local="clr-namespace:myChannel9"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False"
    Loaded="PhoneApplicationPage_Loaded">

    <Grid x:Name="LayoutRoot" Background="#FF54A2A4">
 
        <controls:Panorama Title="  my channel 9" Foreground="White">
            <controls:Panorama.Background>
                <ImageBrush ImageSource="PanoramaBackground.png"/>
            </controls:Panorama.Background>
 
            <controls:PanoramaItem Header="news">
                <Grid>
                    <local:Control_News x:Name="controlNews" />
                    <Image x:Name="btnSettings" Source="Images/logo.png" HorizontalAlignment="Left" VerticalAlignment="Top" Width="150" Height="150" Margin="-20,-290,0,0" MouseLeftButtonDown="btnSettings_MouseLeftButtonDown" />
                    <Image x:Name="btnRefresh" Source="Images/appbar_refresh.png" HorizontalAlignment="Right" VerticalAlignment="Top" Width="48" Height="48" Margin="0,-85,20,0" MouseLeftButtonDown="btnRefresh_MouseLeftButtonDown" />
                </Grid>
            </controls:PanoramaItem>

            <controls:PanoramaItem Header="shows" >
                <local:Control_Show x:Name="controlShow" />
            </controls:PanoramaItem>

            <controls:PanoramaItem Header="series" >
                <local:Control_Series x:Name="controlSeries" />
            </controls:PanoramaItem>

            <controls:PanoramaItem Header="tags" >
                <local:Control_Tags x:Name="controlTags" />
            </controls:PanoramaItem>

            <controls:PanoramaItem Header="   favorites" >
                <local:Control_Favorites x:Name="controlFavorites" />
            </controls:PanoramaItem>

            <controls:PanoramaItem Header="local search" >
                <local:Control_Search x:Name="controlSearch" />
            </controls:PanoramaItem>

            <controls:PanoramaItem Header="twitter" >
                <local:Control_Twitter x:Name="controlTwitter" />
            </controls:PanoramaItem>
            
            <controls:PanoramaItem Header="about" >
                <local:Control_About x:Name="controlAbout" />
            </controls:PanoramaItem>

        </controls:Panorama>
    </Grid>
 
    <!--Panorama-based applications should not show an ApplicationBar-->

</phone:PhoneApplicationPage>